import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { enableProdMode, ApplicationRef, NgModuleRef } from '@angular/core';
import { environment } from './environments/environment';
import { AppModule } from './app/app.module';

if (environment.production) {
  enableProdMode();
}

platformBrowserDynamic()
  .bootstrapModule(AppModule)
  .then(modref => {
    // const appRef :ApplicationRef= modref.injector.get(ApplicationRef);
    // // Object.keys(modref).forEach(key => {
    // //   if(modref[key])
    // // });
   
    // appRef.components.forEach(c => {
    //   console.log('===============================')
    //   console.log(c);
    //   console.log('===============================')
    // });

  });
